package Demo_zhuanshu.XueQiang010;

import java.util.HashSet;
import java.util.Scanner;

public class ScannerTest {
	public static void main(String[] args) {

		Scanner in = new Scanner(System.in);
		System.out.println("请你输入一个字符串");
		String s = in.nextLine();
		char[] s2 = s.toCharArray();
		
		HashSet<Character> rs = new HashSet<>();
		for(char i : s2) {
			rs.add(i);
		}
		for (Character  c: rs) {
            System.out.print(c+",");
            
        }		
	}
}
